package cn.wen.yinxiu.common.idempotent.core.token;import cn.wen.yinxiu.common.convention.result.ResultEntity;import cn.wen.yinxiu.common.convention.result.Results;import lombok.RequiredArgsConstructor;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RestController;/** * @ClassName: IdempotentTokenController * @Author: 小飞 * @Date: 2023/5/24 0:27 * @Description: 基于 Token 验证请求幂等性控制器 */@RestController@RequiredArgsConstructorpublic class IdempotentTokenController {    private final IdempotentTokenService idempotentTokenService;    /**     * 请求申请Token     */    @GetMapping("/token")    public ResultEntity<String> createToken() {        return Results.success(idempotentTokenService.createToken());    }}